from frontend.roleApplication import RoleApplication
from frontend.form import Type

class BusinessOwnerApp(RoleApplication):
   
    def __init__(self):
        
        super(BusinessOwnerApp, self).__init__("BreakALeg", "BusinessOwner") # use actual work flow name and role name
        self.register_transition_step("OwnerDecide", self.owner_decide_form_creator, name_fields=["sequence", "Nationality", "BusinessType", "attempts"]) # use actual name for this task

    def owner_decide_form_creator(self, stepname, form):        
        form.add_static_label('Do you want to make the payment:')
        form.add_field(Type.CHOICE, "OwnerDecide", choices=['Yes', 'No'])

if __name__ == '__main__':
    app = BusinessOwnerApp()
    app.MainLoop()